<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
   
    <title>My JSP 'addRiCheng.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>

  </head>
  
  <body>
  
   <h2> <s:date name="time" format="yyyy-MM-dd"/>日程安排</br></h2>
    <s:iterator value="list" status="list">
   <tr>
   <td><SPAN>标题:</SPAN><s:property value="title"/></td></br>
   <td><SPAN>开始时间:</SPAN><s:date name="starttime"  format="yyyy年MM月dd日 hh:mm:ss"/></td></br>
   <td><SPAN>结束时间:</SPAN><s:date name="overtime" format="yyyy年MM月dd日 hh:mm:ss"/></td></br>
   <td><SPAN>创建时间:</SPAN><s:date name="createtime" format="yyyy年MM月dd日 "/></td></br>
   <td><SPAN>内容:</SPAN><s:property value="content"/></td></br></br>
   <td><input type="button" value="删除" onclick="location.href='deleteTrip.action?tripid=<s:property value="id"/>'"/>
   <input type="button" value="修改" onclick="location.href='toUpdateTrip.action?tripid=<s:property value="id"/>'"/></td></br>
   <td>**************************************************</td></br></br>
   </td>
   </tr>
   </s:iterator>
 

     <form action="addRiCheng.action" method="post">
     <table >
  <tr>
    <td colspan="4">创建日程表:</td>
  </tr>
  <tr>
    <td>开始时间:</td>
    <td><input type="text" name="trip.starttime" readonly="readonly"  onClick="WdatePicker({isShowWeek:true,startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/></td>
    <td>结束时间:</td>
    <td><input type="text" name="trip.overtime" readonly="readonly"  onClick="WdatePicker({isShowWeek:true,startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/></td>
  </tr>
  
   <tr>
    <td>创建时间:</td>
    <td colspan="3" ><input type="text" readonly="readonly" name="trip.createtime" value="<s:date name="time" format="yyyy-MM-dd"/>"/></td>
  </tr>
  <tr><td>标题：</td>
  <td> <input type="text" name="trip.title" /> </td></tr>
   <tr>
    <td>内容：</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr> <tr>
    <td colspan="4">  <textarea name="trip.content" id="textarea" cols="45" rows="5"></textarea></td>
    </tr>
   <tr>
    <td><input type="submit" value="提交" /></td>
    <td>&nbsp;</td>
    <td><input type="button" value="返回" onclick="location.href='toRiLi.action'" /></td>
    <td>&nbsp;</td>
  </tr>
</table>
   </form>

  </body>
</html>
